package com.meituan.service.impl;

import com.meituan.dao.FuYeDao;
import com.meituan.pojo.entity.FuYe;
import com.meituan.pojo.resp.BaseResp;
import com.meituan.service.FuYeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName FuyeServiceImpl
 * @Description TODO
 * @Author 南山北往
 * @Date 2022/9/27 15:06
 * @Version 1.0
 **/
@Service
public class FuYeServiceImpl implements FuYeService {

    @Autowired
    FuYeDao dao;

    @Override
    public BaseResp findByZid(Integer zid) {
       List<FuYe> all=dao.findByZid(zid);
       return new BaseResp(1,"success",all);
    }

}
